package com.bsoft.mapper.business;


import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface InvoicingBoozMapper {

    String getBsSdVistpCd(String idMedstCg);

    Map<String, Object> getBsInvoiceState(@Param("idMedstCg") String idMedstCg,@Param("fphm") String pjzt);

    Map<String, Object> getBsinvEBillHospitalized(String idMedstCg, String sdVistpCd);

    List<Map<String, Object>> chargeDetail_zy(String idMedstCg);

    List<Map<String, Object>> listDetail_zy(String idMedstCg);

    List<Map<String, Object>> payChannelDetail_zy(String idMedstCg);

    List<Map<String, Object>> otherInfos_zy(String idMedstCg);

    Map<String, Object> getBsInvoiceEBillOutpatient(String idMedstCg, String sdVistpCd);

    List<Map<String, Object>> chargeDetail(String idMedstCg);

    List<Map<String, Object>> listDetail(String idMedstCg);

    List<Map<String, Object>> payChannelDetail(String idMedstCg);

    List<Map<String, Object>> otherInfos(String idMedstCg);

    Map<String, Object> getOrgInfo(String idMedstCg);

    int saveDzfp(Map<String, Object> eBillMap);

    int updateDzfp(Map<String, Object> eBillMap);

    Map<String, Object> getSettlementInfo(Map<String, Object> parmMap);

    Map<String, Object> getSettlementInfoCan(Map<String, Object> parmMap);

    List<Map<String, Object>> getInvoiceList(@Param("JGID") String jgid,@Param("FPHM") String invoiceNumber);

    Map<String, Object> getXTCS(@Param("idOrg")String idOrg, @Param("csmc") String csmc);

    List<Map<String, Object>> queryHospitalList(@Param("idOrg") String hospitalID);

    List<Map<String, Object>> queryFillInvoiceEBill();

    void deleteDzfp(Map<String, Object> eBillMap);

    List<Map<String, Object>> queryVisInfoById(Map<String, Object> req);

    @Select("SELECT LPAD(${seqName}.NEXTVAL, 5, '0') AS seq_format FROM DUAL")
    String getSeq(String seqName);
    @Select("SELECT  * FROM gjyb_api_param where  ID_ORG=#{idOrg}")
    Map<String, Object> getGJYBAPI(Map<String, Object> req);

    @Select("select * from (select *  from gjyb_qdjl where cd_user=#{opterCode} and id_org=#{idOrg} and nvl(fg_out,0)=0 order by SIGN_TIME desc) where rownum =1")
    Map<String, Object> getSign(Map<String, Object> commPramMap);

}
